package com.lyb.springbootredisclient.shedule;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/**
 * @author: lyb  2023/3/18 06:20
 */
@Service
public class SheduleServiceImpl {
    // 每五秒执行依次
    @Scheduled(cron = "*/5 * * * * ?")
    public void hello(){
        System.out.println(System.currentTimeMillis()+":hahahahahhahah");
    }
}
